package me.grm.cs.course;

public abstract class ICourse {
    public ICourse(String id, String name, String className) {
        this.courseInfo = new CourseInfo(id, name, className);
    }
    public ICourse(CourseInfo ci) {
        this.courseInfo = ci;
    }
    protected CourseInfo courseInfo;
    abstract String getId();
    abstract String getName();
    abstract int getGrade();
    @Override
    public String toString(){
        return courseInfo.toString();
    }
}
